def main():
    theStr = input()
    for i in range(len(theStr)):
        tmp = theStr[0:i][::-1]
        if theStr+tmp == (theStr+tmp)[::-1]:
            print(theStr + tmp)
            break

if __name__ == "__main__":
    main()


